# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-input-vmmouse
pkgver=13.1.0
pkgrel=4
pkgdesc="X.org VMware mouse input driver"
url="https://xorg.freedesktop.org/"
arch="x86 x86_64"
license="MIT"
subpackages="$pkgname-doc"
depends=
makedepends="libxkbfile-dev xorg-server-dev libxi-dev libxrandr-dev eudev-dev"
source="https://www.x.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"

builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$builddir"
	update_config_sub
	default_prepare
}

build() {
	cd "$builddir"
	export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
sha512sums="38e09c5d7da971eb25ed79fc2daac3b8e1f5e6ec1096424696652c975ea653ed4a49d7779e7735d81a512c12c0a30829d5443ca78a275f3181ebd1740dd2dfd4  xf86-input-vmmouse-13.1.0.tar.bz2"
